Release 10.1A: OpenEdge Development:
Web Services
Running an internal procedure or user-defined function
Methods to run a Progress internal procedure and user-defined function of a persistent procedure (ProcObject) are indistinguishable in client code. These methods:
This is the Progress 4GL prototype for the sample user-defined function,
GetTotalOrdersByNumber( ):
This is a VB.NET declaration for the Progress user-defined function method,
GetTotalOrdersByNumber( ):
The following is a sample method call for the user-defined function method,
GetTotalOrdersByNumber, which is an interface method on the sample ProcObject,CustomerOrder:
Note that user-defined function methods return a value whose data type maps to the Progress data type of the user-defined function’s return value.
This is a sample RPC/Encoded SOAP request that might be generated from invoking the
GetTotalOrdersByNumber( )method to execute the Progress user-defined function, passing in aThresholdorder value of 2150.99:
Note the object ID for the ProcObject,
CustomerOrder, sent to make the request on a method of the ProcObject.This is the SOAP response returning a function value of
5, which is the total number of orders that satisfy the specified orderThresholdvalue:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |